import Mock from "mockjs";
import loginAPI from "./login";
import newsAPI from "./news";
import routersApi from "./routers";

let Random = Mock.Random;

Mock.setup({
  timeout: "0"
});

// 路由相关
Mock.mock("/getRouters", "get", routersApi.realFeedBack);

// // 登录相关
Mock.mock(/\/login\/login/, "post", loginAPI.loginByUsername);
Mock.mock(/\/login\/logout/, "post", loginAPI.logout);
Mock.mock(/\/user\/info\.*/, "get", loginAPI.getUserInfo);

// 资讯相关
Mock.mock(/\/news\/infoList/, "get", newsAPI.infoList);

// // 搜索相关
// Mock.mock(/\/search\/user/, 'get', remoteSearchAPI.searchUser)

// // 账单相关
// Mock.mock(/\/transaction\/list/, 'get', transactionAPI.getList)

export default Mock;
